import request from '@/utils/request'

// 查询客户跟踪列表
export function listLead(query) {
	return request({
		url: '/crm/lead/list',
		method: 'get',
		params: query
	})
}

// 查询客户跟踪详细
export function getLead(id) {
	return request({
		url: '/crm/lead/' + id,
		method: 'get'
	})
}

// 新增客户跟踪
export function addLead(data) {
	return request({
		url: '/crm/lead',
		method: 'post',
		data: data
	})
}

// 修改客户跟踪
export function updateLead(data) {
	return request({
		url: '/crm/lead',
		method: 'put',
		data: data
	})
}

// 删除客户跟踪
export function delLead(id) {
	return request({
		url: '/crm/lead/' + id,
		method: 'delete'
	})
}

// 查询跟进记录列表
export function listComment(id) {
	return request({
		url: '/crm/lead/commentList/' + id,
		method: 'get'
	})
}

// 简历详情
export function resumeInfo(id) {
	return request({
		url: '/crm/lead/resumeInfo/' + id,
		method: 'get'
	})
}